package com.boolib.commons.util;

import com.boolib.commons.Const;
import com.boolib.pojo.ShopUser;
import com.boolib.pojo.SysUser;

import javax.servlet.http.HttpSession;

public class HttpSessionUtil {

    public static ShopUser getShopUser(HttpSession httpSession){

        return  (ShopUser)httpSession.getAttribute(Const.User.SESSIONAUTH);
    }



    public static SysUser getSysUser(HttpSession httpSession){

        return  (SysUser)httpSession.getAttribute(Const.SysUser.SESSIONAUTH);
    }
}
